findIsInstance

inline fun <T : Any> Array<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)
inline fun <T : Any> Iterable<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)
inline fun <T : Any> Iterator<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)
inline fun <T : Any> Sequence<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)

Returns the first T element that satisfies the check or null if nothing was found.